﻿using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DXApplicationTangche.UC.圣同润.会销
{
    public partial class UC商品清单 : DevExpress.XtraEditors.XtraUserControl
    {
        public UC商品清单()
        {
            InitializeComponent();
            this.refreshData();
        }

        public void refreshData() {
            List<GoodDTO> goodDTOs = MeetingSaleService.getUnSuitGoodsAll();
            this.gridControl1.DataSource = goodDTOs;
            this.advBandedGridView1.RefreshData();
        }

        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.refreshData();
        }
    }
}
